package fiber

type ErrorCode = int

const (
	UnknownError ErrorCode = iota
	NetworkError
)

type _error struct {
	ErrorCode ErrorCode
	Code      int
	Msg       string
}

var errMap = map[ErrorCode]*_error{
	UnknownError: {
		ErrorCode: UnknownError,
		Code:      500,
		Msg:       "unknown error",
	},
	NetworkError: {
		ErrorCode: NetworkError,
		Code:      9998,
		Msg:       "请求出错，请检查网络",
	},
}
